package com.coder520.workflow.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class ReAttendExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ReAttendExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCTime(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Time(value.getTime()), property);
        }

        protected void addCriterionForJDBCTime(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Time> timeList = new ArrayList<java.sql.Time>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                timeList.add(new java.sql.Time(iter.next().getTime()));
            }
            addCriterion(condition, timeList, property);
        }

        protected void addCriterionForJDBCTime(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Time(value1.getTime()), new java.sql.Time(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andAttendIdIsNull() {
            addCriterion("attend_id is null");
            return (Criteria) this;
        }

        public Criteria andAttendIdIsNotNull() {
            addCriterion("attend_id is not null");
            return (Criteria) this;
        }

        public Criteria andAttendIdEqualTo(Long value) {
            addCriterion("attend_id =", value, "attendId");
            return (Criteria) this;
        }

        public Criteria andAttendIdNotEqualTo(Long value) {
            addCriterion("attend_id <>", value, "attendId");
            return (Criteria) this;
        }

        public Criteria andAttendIdGreaterThan(Long value) {
            addCriterion("attend_id >", value, "attendId");
            return (Criteria) this;
        }

        public Criteria andAttendIdGreaterThanOrEqualTo(Long value) {
            addCriterion("attend_id >=", value, "attendId");
            return (Criteria) this;
        }

        public Criteria andAttendIdLessThan(Long value) {
            addCriterion("attend_id <", value, "attendId");
            return (Criteria) this;
        }

        public Criteria andAttendIdLessThanOrEqualTo(Long value) {
            addCriterion("attend_id <=", value, "attendId");
            return (Criteria) this;
        }

        public Criteria andAttendIdIn(List<Long> values) {
            addCriterion("attend_id in", values, "attendId");
            return (Criteria) this;
        }

        public Criteria andAttendIdNotIn(List<Long> values) {
            addCriterion("attend_id not in", values, "attendId");
            return (Criteria) this;
        }

        public Criteria andAttendIdBetween(Long value1, Long value2) {
            addCriterion("attend_id between", value1, value2, "attendId");
            return (Criteria) this;
        }

        public Criteria andAttendIdNotBetween(Long value1, Long value2) {
            addCriterion("attend_id not between", value1, value2, "attendId");
            return (Criteria) this;
        }

        public Criteria andReAttendStarterIsNull() {
            addCriterion("re_attend_starter is null");
            return (Criteria) this;
        }

        public Criteria andReAttendStarterIsNotNull() {
            addCriterion("re_attend_starter is not null");
            return (Criteria) this;
        }

        public Criteria andReAttendStarterEqualTo(String value) {
            addCriterion("re_attend_starter =", value, "reAttendStarter");
            return (Criteria) this;
        }

        public Criteria andReAttendStarterNotEqualTo(String value) {
            addCriterion("re_attend_starter <>", value, "reAttendStarter");
            return (Criteria) this;
        }

        public Criteria andReAttendStarterGreaterThan(String value) {
            addCriterion("re_attend_starter >", value, "reAttendStarter");
            return (Criteria) this;
        }

        public Criteria andReAttendStarterGreaterThanOrEqualTo(String value) {
            addCriterion("re_attend_starter >=", value, "reAttendStarter");
            return (Criteria) this;
        }

        public Criteria andReAttendStarterLessThan(String value) {
            addCriterion("re_attend_starter <", value, "reAttendStarter");
            return (Criteria) this;
        }

        public Criteria andReAttendStarterLessThanOrEqualTo(String value) {
            addCriterion("re_attend_starter <=", value, "reAttendStarter");
            return (Criteria) this;
        }

        public Criteria andReAttendStarterLike(String value) {
            addCriterion("re_attend_starter like", value, "reAttendStarter");
            return (Criteria) this;
        }

        public Criteria andReAttendStarterNotLike(String value) {
            addCriterion("re_attend_starter not like", value, "reAttendStarter");
            return (Criteria) this;
        }

        public Criteria andReAttendStarterIn(List<String> values) {
            addCriterion("re_attend_starter in", values, "reAttendStarter");
            return (Criteria) this;
        }

        public Criteria andReAttendStarterNotIn(List<String> values) {
            addCriterion("re_attend_starter not in", values, "reAttendStarter");
            return (Criteria) this;
        }

        public Criteria andReAttendStarterBetween(String value1, String value2) {
            addCriterion("re_attend_starter between", value1, value2, "reAttendStarter");
            return (Criteria) this;
        }

        public Criteria andReAttendStarterNotBetween(String value1, String value2) {
            addCriterion("re_attend_starter not between", value1, value2, "reAttendStarter");
            return (Criteria) this;
        }

        public Criteria andReAttendMornIsNull() {
            addCriterion("re_attend_morn is null");
            return (Criteria) this;
        }

        public Criteria andReAttendMornIsNotNull() {
            addCriterion("re_attend_morn is not null");
            return (Criteria) this;
        }

        public Criteria andReAttendMornEqualTo(Date value) {
            addCriterionForJDBCTime("re_attend_morn =", value, "reAttendMorn");
            return (Criteria) this;
        }

        public Criteria andReAttendMornNotEqualTo(Date value) {
            addCriterionForJDBCTime("re_attend_morn <>", value, "reAttendMorn");
            return (Criteria) this;
        }

        public Criteria andReAttendMornGreaterThan(Date value) {
            addCriterionForJDBCTime("re_attend_morn >", value, "reAttendMorn");
            return (Criteria) this;
        }

        public Criteria andReAttendMornGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("re_attend_morn >=", value, "reAttendMorn");
            return (Criteria) this;
        }

        public Criteria andReAttendMornLessThan(Date value) {
            addCriterionForJDBCTime("re_attend_morn <", value, "reAttendMorn");
            return (Criteria) this;
        }

        public Criteria andReAttendMornLessThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("re_attend_morn <=", value, "reAttendMorn");
            return (Criteria) this;
        }

        public Criteria andReAttendMornIn(List<Date> values) {
            addCriterionForJDBCTime("re_attend_morn in", values, "reAttendMorn");
            return (Criteria) this;
        }

        public Criteria andReAttendMornNotIn(List<Date> values) {
            addCriterionForJDBCTime("re_attend_morn not in", values, "reAttendMorn");
            return (Criteria) this;
        }

        public Criteria andReAttendMornBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("re_attend_morn between", value1, value2, "reAttendMorn");
            return (Criteria) this;
        }

        public Criteria andReAttendMornNotBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("re_attend_morn not between", value1, value2, "reAttendMorn");
            return (Criteria) this;
        }

        public Criteria andReAttendEvenIsNull() {
            addCriterion("re_attend_even is null");
            return (Criteria) this;
        }

        public Criteria andReAttendEvenIsNotNull() {
            addCriterion("re_attend_even is not null");
            return (Criteria) this;
        }

        public Criteria andReAttendEvenEqualTo(Date value) {
            addCriterionForJDBCTime("re_attend_even =", value, "reAttendEven");
            return (Criteria) this;
        }

        public Criteria andReAttendEvenNotEqualTo(Date value) {
            addCriterionForJDBCTime("re_attend_even <>", value, "reAttendEven");
            return (Criteria) this;
        }

        public Criteria andReAttendEvenGreaterThan(Date value) {
            addCriterionForJDBCTime("re_attend_even >", value, "reAttendEven");
            return (Criteria) this;
        }

        public Criteria andReAttendEvenGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("re_attend_even >=", value, "reAttendEven");
            return (Criteria) this;
        }

        public Criteria andReAttendEvenLessThan(Date value) {
            addCriterionForJDBCTime("re_attend_even <", value, "reAttendEven");
            return (Criteria) this;
        }

        public Criteria andReAttendEvenLessThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("re_attend_even <=", value, "reAttendEven");
            return (Criteria) this;
        }

        public Criteria andReAttendEvenIn(List<Date> values) {
            addCriterionForJDBCTime("re_attend_even in", values, "reAttendEven");
            return (Criteria) this;
        }

        public Criteria andReAttendEvenNotIn(List<Date> values) {
            addCriterionForJDBCTime("re_attend_even not in", values, "reAttendEven");
            return (Criteria) this;
        }

        public Criteria andReAttendEvenBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("re_attend_even between", value1, value2, "reAttendEven");
            return (Criteria) this;
        }

        public Criteria andReAttendEvenNotBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("re_attend_even not between", value1, value2, "reAttendEven");
            return (Criteria) this;
        }

        public Criteria andCurrentHandlerIsNull() {
            addCriterion("current_handler is null");
            return (Criteria) this;
        }

        public Criteria andCurrentHandlerIsNotNull() {
            addCriterion("current_handler is not null");
            return (Criteria) this;
        }

        public Criteria andCurrentHandlerEqualTo(String value) {
            addCriterion("current_handler =", value, "currentHandler");
            return (Criteria) this;
        }

        public Criteria andCurrentHandlerNotEqualTo(String value) {
            addCriterion("current_handler <>", value, "currentHandler");
            return (Criteria) this;
        }

        public Criteria andCurrentHandlerGreaterThan(String value) {
            addCriterion("current_handler >", value, "currentHandler");
            return (Criteria) this;
        }

        public Criteria andCurrentHandlerGreaterThanOrEqualTo(String value) {
            addCriterion("current_handler >=", value, "currentHandler");
            return (Criteria) this;
        }

        public Criteria andCurrentHandlerLessThan(String value) {
            addCriterion("current_handler <", value, "currentHandler");
            return (Criteria) this;
        }

        public Criteria andCurrentHandlerLessThanOrEqualTo(String value) {
            addCriterion("current_handler <=", value, "currentHandler");
            return (Criteria) this;
        }

        public Criteria andCurrentHandlerLike(String value) {
            addCriterion("current_handler like", value, "currentHandler");
            return (Criteria) this;
        }

        public Criteria andCurrentHandlerNotLike(String value) {
            addCriterion("current_handler not like", value, "currentHandler");
            return (Criteria) this;
        }

        public Criteria andCurrentHandlerIn(List<String> values) {
            addCriterion("current_handler in", values, "currentHandler");
            return (Criteria) this;
        }

        public Criteria andCurrentHandlerNotIn(List<String> values) {
            addCriterion("current_handler not in", values, "currentHandler");
            return (Criteria) this;
        }

        public Criteria andCurrentHandlerBetween(String value1, String value2) {
            addCriterion("current_handler between", value1, value2, "currentHandler");
            return (Criteria) this;
        }

        public Criteria andCurrentHandlerNotBetween(String value1, String value2) {
            addCriterion("current_handler not between", value1, value2, "currentHandler");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Byte value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Byte value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Byte value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Byte value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Byte value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Byte> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Byte> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Byte value1, Byte value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andCommentsIsNull() {
            addCriterion("comments is null");
            return (Criteria) this;
        }

        public Criteria andCommentsIsNotNull() {
            addCriterion("comments is not null");
            return (Criteria) this;
        }

        public Criteria andCommentsEqualTo(String value) {
            addCriterion("comments =", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsNotEqualTo(String value) {
            addCriterion("comments <>", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsGreaterThan(String value) {
            addCriterion("comments >", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsGreaterThanOrEqualTo(String value) {
            addCriterion("comments >=", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsLessThan(String value) {
            addCriterion("comments <", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsLessThanOrEqualTo(String value) {
            addCriterion("comments <=", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsLike(String value) {
            addCriterion("comments like", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsNotLike(String value) {
            addCriterion("comments not like", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsIn(List<String> values) {
            addCriterion("comments in", values, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsNotIn(List<String> values) {
            addCriterion("comments not in", values, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsBetween(String value1, String value2) {
            addCriterion("comments between", value1, value2, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsNotBetween(String value1, String value2) {
            addCriterion("comments not between", value1, value2, "comments");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}